<%-- 
    Document   : success
    Created on : Jul 18, 2012, 3:36:16 PM
    Author     : Ram
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/tld/displaytag-12.tld" prefix="display"%>
<%String path=request.getContextPath();
request.setAttribute("path",path);
%>

<!DOCTYPE html>
<html>
    <head>

  <script type="text/javascript">
        function callmethod(id,path){
           window.location.href=path+"/EditUserServlet?id="+id;
            }
    </script>       
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
     
    <body>
        <form name="name1">

        <div  style="width:100%;border-bottom: 1px solid black;border-top: 1px solid black;border-right: 1px solid black;border-left: 1px solid black;background:aliceblue">
            <display:table name="userlist" id="userId" style="width:100%" pagesize="15" >
                <display:column title="id" property="id" sortable="true"></display:column>
                <display:column title="UserName" property="userName" sortable="true"></display:column>
                <display:column  title="FirstName" property="firstName" sortable="true"></display:column>
                <display:column  title="LastName" property="lastName" sortable="true"></display:column>
                <display:column  title="Email" property="email" sortable="true"></display:column>
                <display:column><html:button property="" styleId="button" value="Edit" onclick="callmethod('${userId.id}','${path}');"/></display:column>
            </display:table>

        </div>

        <a href="jsp/common/createUserForm.jsp" >Create user</a>
        </form>
    </body>
</html>
